﻿/****************************** Module Header ******************************\
 * Module Name:  tUserPersonalMessage.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 系统-站内信 数据实体类
    /// </summary>
    [DBTable(Common = "系统-站内信")]
    public class tUserPersonalMessage
    {
        /// <summary>
        /// Guid编号
        /// </summary>
        public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
        private Guid? _ID;

        /// <summary>
        ///  收信人会员帐号
        /// </summary>
        public string ToUserName { get { return _ToUserName; } set { _ToUserName = value; } }

        [DBColumn(Alias = "收信人会员帐号", Length = "32")]
        private string _ToUserName;

        /// <summary>
        /// 发信人会员帐号
        /// </summary>
        public string FromUserName { get { return _FromUserName; } set { _FromUserName = value; } }

        [DBColumn(Alias = "发信人会员帐号", Length = "32")]
        private string _FromUserName;

        /// <summary>
        /// 消息标题
        /// </summary>
        public string Subject { get { return _Subject; } set { _Subject = value; } }

        [DBColumn(Alias = "消息标题", Length = "32")]
        private string _Subject;

        /// <summary>
        /// 消息正文
        /// </summary>
        public string Body { get { return _Body; } set { _Body = value; } }

        [DBColumn(Alias = "消息正文", Length = "Max")]
        private string _Body;

        /// <summary>
        /// 阅读时间
        /// </summary>
        public DateTime ReadTime { get { return _ReadTime ?? default(DateTime); } set { _ReadTime = value; } }

        [DBColumn(Alias = "阅读时间", CanBeNull = true)]
        private DateTime? _ReadTime;

        /// <summary>
        /// 发信人的邮箱位置 (inbox=收件箱,outbox=发件箱,recycle=回收站)
        /// </summary>
        public string FromFolder { get { return _FromFolder; } set { _FromFolder = value; } }

        [DBColumn(Alias = "发信人的邮箱位置", Length = "8", Common = "inbox=收件箱,outbox=发件箱,recycle=回收站")]
        private string _FromFolder;

        /// <summary>
        /// 收信人的邮箱位置 (inbox=收件箱,outbox=发件箱,recycle=回收站)
        /// </summary>
        public string ToFolder { get { return _ToFolder; } set { _ToFolder = value; } }

        [DBColumn(Alias = "收信人的邮箱位置", Length = "8", Common = "inbox=收件箱,outbox=发件箱,recycle=回收站")]
        private string _ToFolder;

        /// <summary>
        /// 扩展标签
        /// </summary>
        public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

        [DBColumn(Alias = "扩展标签", Length = "16")]
        private string _ExTags;

        /// <summary>
        /// 状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "最后更新时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

        [DBColumn(Alias = "是否删除", DefaultValue = "0")]
        private bool? _IsDeleted;

        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

        [DBColumn(Alias = "网站标签", CanBeNull = true, Length = "16")]
        private string _SiteTag;

    }
}
